package com.deram.ctin.serv.third.api;

import com.deram.ctin.serv.third.result.QiniuUpdateConfig;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author zhangcm
 * @version 1.0, 2017/9/26
 */
@FeignClient("serv-third")
@RequestMapping("/qiniuUploadApi")
public interface QiniuUploadApi {

    @PostMapping("/getConfig")
    QiniuUpdateConfig getConfig();

    @PostMapping("/delete")
    void delete(@RequestParam("url") String url);
}
